package com.bitao.system.domain.question.dto;

import com.bitao.PageQueryDTO;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Set;

/**
 * Created with IntelliJ IDEA.
 * Description: 题库列表前端数据
 * Author:  LiuTao
 * Version: 1.0
 * Date:    2025-05-27  17:20
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class QuestionQueryDTO extends PageQueryDTO {

    private Integer difficulty;

    private String title;

    /**
     * 解决竞赛管理添加题目后题目依旧在列表显示问题
     * 通过传递已排除题目ID来解决,前端通过字符串方式传递给后端
     * 用excludeStr接收字符串ID，并用SPLIT_CHAR = ";" 进行分割
     * 将分割结果存储在excludeIdSet中
     * excludeStr：分隔符 -->  ;
     */
    private String excludeStr;

    private Set<Long> excludeIdSet;

}
